# 生产环境配置

# 数据库配置
DB_USERNAME = 'root'
DB_PASSWORD = '111'
DB_HOST = '127.0.0.1'
DB_PORT = '3306'
DB_NAME = 'db01'
DB_URI = 'mysql + pymysql://%s:%s@%s:%s/%s?charset=utf8mb4' % (DB_USERNAME, DB_PASSWORD, DB_HOST, DB_PORT, DB_NAME)

# 设置数据库的连接地址
SQLALCHEMY_DATABASE_URI = DB_URI
# 是否追踪数据库的变化(触发钩子函数)，会消耗额外的内存
SQLALCHEMY_TRACK_MODIFICATIONS = False